<nz-layout class="app-layout">
  <nz-sider class="menu-sidebar" nzCollapsible="true" nzWidth="200px" [nzCollapsed]="isCollapsed$ | async"
            [nzTrigger]="null">
    <div class="sidebar-logo">
      <a href="https://ng.ant.design/" target="_blank">
        <img src="https://ng.ant.design/assets/img/logo.svg" alt="logo">
        <h1>挂机神话辅助</h1>
      </a>
    </div>
    <ul nz-menu nzTheme="dark" nzMode="inline">
      <li nz-submenu nzOpen nzTitle="道具整理" nzIcon="form">
        <ul>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/weapon">武器</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/armor">战衣</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/talisman">法宝</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/soul">斗魂</a>
          </li>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/treasure">天材地宝</a>
          </li>
        </ul>
      </li>

      <li nz-submenu nzOpen nzTitle="作弊部分" nzIcon="dashboard">
        <ul>
          <li nz-menu-item nzMatchRouter>
            <a routerLink="/welcome">修改基础信息</a>
          </li>
        </ul>
      </li>
    </ul>
  </nz-sider>
  <nz-layout>
    <nz-header>
      <div class="app-header">
        <span class="header-trigger" (click)="collapsedReversal()">
            <span class="trigger"
                  nz-icon
                  [nzType]="(isCollapsed$ | async) ? 'menu-unfold' : 'menu-fold'"
            ></span>
        </span>
        <div class="app-header-button-group">
          <button nz-button nzType="primary" nzShape="circle" (click)="load()">
            <span nz-icon nzType="redo"></span>
          </button>
        </div>
      </div>
    </nz-header>
    <nz-content>
      <div class="inner-content">
        <router-outlet></router-outlet>
      </div>
    </nz-content>
  </nz-layout>
</nz-layout>
